﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ERP_RORZE_PRODUCT.Product.Machine;

namespace ERP_RORZE_PRODUCT.Product.Forms
{
    public partial class Frm_Machine : DevExpress.XtraEditors.XtraForm
    {
        ctrlMachineList ctrlMachine = new ctrlMachineList();
        ctrlMachineGroup ctrlMachineGroup = new ctrlMachineGroup();
        ctrlMachineDailyTime ctrlMachineDailytime = new ctrlMachineDailyTime();
        frm_MachineCapacity ctrlMachinecapacity = new frm_MachineCapacity();
        public Frm_Machine()
        {
            InitializeComponent();
        }

        private void navItemMachineList_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMachine.Panel2.Controls.Clear();
            spcMachine.Panel2.Controls.Add(ctrlMachine);
            ctrlMachine.Dock = DockStyle.Fill;
        }

        private void navItemMachineGroup_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMachine.Panel2.Controls.Clear();
            spcMachine.Panel2.Controls.Add(ctrlMachineGroup);
            ctrlMachineGroup.Dock = DockStyle.Fill;
        }

        private void navItemMachineCapacity_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMachine.Panel2.Controls.Clear();
            spcMachine.Panel2.Controls.Add(ctrlMachinecapacity);
            ctrlMachinecapacity.Dock = DockStyle.Fill;
        }

        private void navItemMachineDailyTime_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMachine.Panel2.Controls.Clear();
            spcMachine.Panel2.Controls.Add(ctrlMachineDailytime);
            ctrlMachineDailytime.Dock = DockStyle.Fill;
        }
    }
}